﻿<UserControl x:Class="SoGame.Views.GamesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:me="clr-namespace:SoGame.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <me:GamesViewModel x:Key="viewModel" />
    </UserControl.Resources>
    <Grid DataContext="{Binding Source={StaticResource viewModel}}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.35*"/>
            <ColumnDefinition Width="0.65*"/>
        </Grid.ColumnDefinitions>
        
        <StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,-15,0,0">
            <Button Command="{Binding GameSelection}" CommandParameter="SOSLAM" Style="{DynamicResource MetroPathTitleButton}">
                <TextBlock Text="SOSLAM" Style="{DynamicResource MetroHeader2}" Margin="15,0,0,0" />
            </Button>
            <Button Command="{Binding GameSelection}" CommandParameter="SOTANK" Style="{DynamicResource MetroPathTitleButton}">
                <TextBlock Text="SOTANK" Style="{DynamicResource MetroHeader2}" Margin="15,0,0,0" />
            </Button>
        </StackPanel>
        <Image Margin="0,20,5,-40" Visibility="{Binding IsSOSLAM, Converter={StaticResource VisibilityConverter}}" Grid.ColumnSpan="2" Source="/SoGame;component/Assets/Images/ModeEmploi_SoNuts.png"/>
        <Image Margin="0,20,5,-40" Visibility="{Binding IsSOTANK, Converter={StaticResource VisibilityConverter}}" Grid.ColumnSpan="2" Source="/SoGame;component/Assets/Images/ModeEmploi_SoTank.png"/>
    </Grid>
</UserControl>
